<div id="main-content">
    <table>
        <thead>
            <tr>
                <th style="text-align:left">Nom &amp; Prénom</th>
                <th style="text-align:left">Date &amp; Heure</th>
                <th style="text-align:left">Traitée ?</th>
                <th style="text-align:left">Payée ?</th>
                <th style="text-align:left">Editer  </th>
                <th style="text-align:left">Supprimer</th>
            </tr>
        </thead>
        <tfoot>
            <tr>
                <td colspan="6">
                    <?php if(count($this->paginator) > 1) :?>
                        <?php echo $this->paginationControl($this->paginator, 'Sliding', '_pagination.phtml'); ?>
                    <?php endif;?>
                    <!-- End .pagination -->

                    <div class="clear"></div>
               </td>
            </tr>
        </tfoot>
        <tbody>
        <?php
        foreach($this->paginator as $rs) :
            $dtcreat = new DateTime($rs['dtcreat']);
        ?>
        <tr>
            <td style="text-align:left"><?php echo $rs['nom'] ?> &nbsp;<?php echo $rs['prenom'] ?></td>
            <td style="text-align:left"><?php echo $dtcreat->format('d/m/Y') .' '. $rs['hrcreat'] ?></td>
            <td><?php echo $this->image()->getStatus($rs['traitee']) ?></td>
            <td><?php echo $this->image()->getStatus($rs['paye']) ?></td>
            <td><a href="<?php echo $this->baseUrl() ?>/admin/catalog/edit-catalog/id/<?php echo $rs['p_cmdcatalogue']?>"><img src="<?php echo $this->baseUrl()?>/images/pencil.png"></a></td>
            <td><a href="<?php echo $this->baseUrl('/admin/catalog/delete/id/') ?><?php echo $rs['p_cmdcatalogue']?>" class="delete-item"><img src="<?php echo $this->baseUrl()?>/images/cross.png"></a></td>
        </tr>
        <?php endforeach ?>
        </tbody>
    </table>
</div>